

package com.cmcc.pcap.packet.sctp.nas.impl.ies;


import com.cmcc.pcap.packet.sctp.nas.core.ies.InformationElement3;
import com.cmcc.pcap.packet.sctp.nas.utils.OctetInputStream;
import com.cmcc.pcap.packet.sctp.nas.utils.OctetOutputStream;
import com.cmcc.pcap.packet.sctp.nas.utils.octets.Octet;

public class IEN1ModeToS1ModeNasTransparentContainer extends InformationElement3 {
    public Octet sequenceNumber;

    public IEN1ModeToS1ModeNasTransparentContainer() {
    }

    public IEN1ModeToS1ModeNasTransparentContainer(Octet sequenceNumber) {
        this.sequenceNumber = sequenceNumber;
    }

    @Override
    protected InformationElement3 decodeIE3(OctetInputStream stream) {
        return new IEN1ModeToS1ModeNasTransparentContainer(stream.readOctet());
    }

    @Override
    public void encodeIE3(OctetOutputStream stream) {
        stream.writeOctet(sequenceNumber);
    }
}
